echo 构建APK...
dirname=$(pwd)
cd ${dirname}

if [ -z "$git_branch" ]; then
    ./gradlew clean assemble${env}Release assemble${env}Debug
else
    ./gradlew clean
    ./gradlew assemble${env}Release -PGIT_BRANCH="$git_branch"
    ./gradlew assemble${env}Debug -PGIT_BRANCH="$git_branch"
fi